﻿<%@ Control Language="VB" AutoEventWireup="false" CodeFile="SearchEcolifeData.ascx.vb" Inherits="WebForm_ManageEcolife_SearchEcolifeData" %>
<%@ Register Src="~/WebForm/CommonControl/CalendarTextBox.ascx" TagName="CalendarTextBox"
    TagPrefix="My" %>
<%@ Register Src="~/WebForm/SearchControl/SearchCleanPlanControl.ascx" TagName="SearchCleanPlanControl"
    TagPrefix="My" %>
<%@ Register Src="~/WebForm/SearchControl/SearchDirtyHeaderControl.ascx" TagName="SearchDirtyHeaderControl"
    TagPrefix="My" %>
<table width="100%">
    <tr>
        <td align="left">
            <fieldset align="left">
                <legend>
                    <asp:Label ID="lblAdvanceSearch" runat="server" meta:resourcekey="lblAdvanceSearch"></asp:Label>
                </legend>
                <table>
                    <tr>
                        <td align="right">
                            <asp:Label ID="lblEcolifeID" runat="server" meta:resourcekey="lblEcolifeID" />
                        </td>
                        <td align="left">
                            <asp:TextBox ID="txtEcolifeID" runat="server" MaxLength="50"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td align="right">
                            <asp:Label ID="lblLogType" runat="server" meta:resourcekey="lblLogType"></asp:Label>
                        </td>
                        <td align="left">
                            <asp:DropDownList ID="ddlLogType" runat="server">
                            </asp:DropDownList>
                        </td>
                    </tr>
                    <tr>
                        <td align="right">
                            <asp:Label ID="lblQueryDate" runat="server" meta:resourcekey="lblQueryDate"></asp:Label>
                        </td>
                        <td align="left">
                            <My:CalendarTextBox ID="txtCleanDateStart" runat="server" />~
                            <My:CalendarTextBox ID="txtCleanDateEnd" runat="server" />
                        </td>
                    </tr>
                    <tr>
                        <td align="right">
                            <asp:Label ID="lblLocation" runat="server" meta:resourcekey="lblLocation"></asp:Label>
                        </td>
                        <td align="left">
                                <asp:UpdatePanel ID="upTownID" runat="server" UpdateMode="conditional">
                                    <ContentTemplate>
                                        <asp:DropDownList ID="ddlTownID" runat="server" OnSelectedIndexChanged="ddlTownID_SelectedIndexChanged"
                                            AutoPostBack="true">
                                        </asp:DropDownList>
                                        <asp:DropDownList ID="ddlVillageID" runat="server">
                                        </asp:DropDownList>
                                    </ContentTemplate>
                                </asp:UpdatePanel>
                        </td>
                    </tr>
                    <tr>
                        <td align="right">
                            <asp:Label ID="lblBlogType" runat="server" meta:resourcekey="lblBlogType"></asp:Label>
                        </td>
                        <td align="left">
                                <asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="conditional">
                                    <ContentTemplate>
                                        <asp:DropDownList ID="ddlBlogGroup" runat="server" OnSelectedIndexChanged="ddlBlogGroup_SelectedIndexChanged"
                                            AutoPostBack="true">
                                        </asp:DropDownList>
                                        <asp:DropDownList ID="ddlBlogType" runat="server">
                                        </asp:DropDownList>
                                    </ContentTemplate>
                                </asp:UpdatePanel>
                        </td>
                    </tr>
                    <tr>
                        <td align="right">
                            <asp:Label ID="lblItemName" runat="server" meta:resourcekey="lblItemName"></asp:Label>
                        </td>
                        <td align="left">
                                <asp:UpdatePanel ID="UpdatePanel2" runat="server" UpdateMode="conditional">
                                    <ContentTemplate>
                                        <asp:DropDownList ID="ddlItemGroup1" runat="server" AutoPostBack="true">
                                        </asp:DropDownList>
                                        <asp:DropDownList ID="ddlItemGroup2" runat="server" AutoPostBack="true">
                                        </asp:DropDownList>
                                        <asp:DropDownList ID="ddlItemGroup3" runat="server" AutoPostBack="true">
                                        </asp:DropDownList>
                                        <asp:DropDownList ID="ddlItemGroup4" runat="server">
                                        </asp:DropDownList>
                                    </ContentTemplate>
                                </asp:UpdatePanel>
                        </td>
                    </tr>
                    <tr>
                        <td align="right">
                            <asp:Label ID="lblActive" runat="server" meta:resourcekey="lblActive"></asp:Label>
                        </td>
                        <td align="left">
                            <asp:DropDownList ID="ddlActive" runat="server">
                            </asp:DropDownList>
                        </td>
                    </tr>
                    <tr>
                        <td align="center" colspan="2">
                            <asp:Button ID="btnQuery" CssClass="button" SkinID="button" ValidationGroup="vQuery" runat="server" meta:resourcekey="btnQuery" />
                            <asp:RequiredFieldValidator id="rfvEcolifeID" runat="server" meta:resourcekey="rfvEcolifeID" ValidationGroup="vQuery" ControlToValidate="txtEcolifeID" Display="None" SetFocusOnError="True">*</asp:RequiredFieldValidator>
                            <asp:ValidationSummary id="ValidationSummary1" runat="server" ShowMessageBox="True" ShowSummary="False" ValidationGroup="vQuery"></asp:ValidationSummary>
                        </td>
                    </tr>
                </table>
            </fieldset>
        </td>
    </tr>
    <tr>
        <td align="left">
            <fieldset align="left">
                <legend>
                    <asp:Label ID="lblLogItem" runat="server" meta:resourcekey="lblLogItem"></asp:Label>
                </legend>
                <table>
                    <tr>
                        <td align="center">
                           <My:MyGridView ID="gv" Width="650px" DataKeyNames="CaseNo,ReportCaseNo" EmptyDataText="No data found!!" runat="server" SkinID="pager" AllowHoverSelect="false" meta:resourcekey="gv" AllowSorting="true">
                                <Columns>
                                   <asp:TemplateField meta:resourcekey="bfCaseNo" SortExpression="e.CaseNo">
                                        <ItemTemplate>
                                            <asp:HyperLink Target="_blank" runat="server" ID="hlinkCaseNo" Text='<%# Eval("CaseNo") %>'></asp:HyperLink>
                                        </ItemTemplate>
                                        <ItemStyle HorizontalAlign="center" />
                                    </asp:TemplateField>    
                                   <asp:BoundField DataField="TheDate" meta:resourcekey="bfTheDate" SortExpression="e.TheDate" />
                                   <asp:TemplateField meta:resourcekey="bfReportDescription" SortExpression="e.ReportDescription">
                                        <ItemTemplate>
                                            <asp:HyperLink Target="_blank" runat="server" ID="hlinkReportDescription" Text='<%# Eval("ReportDescription") %>'></asp:HyperLink>
                                        </ItemTemplate>
                                        <ItemStyle HorizontalAlign="left" />
                                    </asp:TemplateField>    
                                    <asp:BoundField DataField="OrganizationName" meta:resourcekey="bfImportOrganization" SortExpression="e.OrganizationName" />
                                    <asp:BoundField DataField="UserName" meta:resourcekey="bfImportBy" SortExpression="e.UserName" />
                                    <asp:BoundField DataField="ImportDate" meta:resourcekey="bfImportDate" SortExpression="e.ImportDate" />
                                    <asp:TemplateField meta:resourcekey="bfImport" >
                                        <ItemTemplate>
                                            <asp:Button ID="btnImport" CssClass="button" SkinID="button" runat="server" meta:resourcekey="btnImport" CommandName="Select" />
                                        </ItemTemplate>
                                        <ItemStyle HorizontalAlign="Center" />
                                    </asp:TemplateField> 
                                </Columns>
                            </My:MyGridView>
                            <My:SearchCleanPlanControl ID="SearchCleanPlanControl1" runat="server" />
                            <My:SearchDirtyHeaderControl ID="SearchDirtyHeaderControl1" runat="server" />
                        </td>
                    </tr>
                </table>
            </fieldset>
        </td>
    </tr>
</table>
